package file1;

import java.util.Scanner;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/4/14
 * \* Time: 13:51
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class Demo5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String [] pp = str.split("-");// 4 4 4 4-joker JOKER，将这个字符串以-分隔开   4 4 4 4   joker JOKER
        String [] p1 = pp[0].split(" ");//4 4 4 4
        String [] p2 = pp[1].split(" ");// joker JOKER
        System.out.println(pp);
        System.out.println("-----------");
        System.out.println(pp[0]);
        System.out.println("-----------");
        System.out.println(pp[1]);
    }
}
